package com.wx.fresh.common.enums;

public enum ResultCode implements IErrorCode{
    SUCCESS(200, "success",1),
    FAILED(500, "error",0),
    CODE_ERROR(202, "error-code", 0),
    LOGIN_DATE(400, "登录过期，请重新登录！", 0),
    VALIDATE_FAILED(404, "参数检验失败",0),
    UNAUTHORIZED(401, "暂未登录或token已经过期",0),
    DUPLICATE_USER_NAME(402, "用户名已经存在，请重新输入", 0),
    FORBIDDEN(403, "没有相关权限",0),
    UPLOAD_SUCCESS(0, "上传成功！", 1);
    private String msg;
    private Integer code;
    private Integer count;

    ResultCode(Integer code, String msg, Integer count) {
        this.code = code;
        this.msg = msg;
        this.count = count;
    }

    public String getMsg() {
        return msg;
    }

    public Integer getCode() {
        return code;
    }

    public Integer getCount() {
        return count;
    }
}